package com.ruoyi.healthCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TBizSampleCollectionMapper;
import com.ruoyi.healthCard.domain.TBizSampleCollection;
import com.ruoyi.healthCard.service.ITBizSampleCollectionService;

/**
 * 样本采集Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-07
 */
@Service
public class TBizSampleCollectionServiceImpl implements ITBizSampleCollectionService
{
    @Autowired
    private TBizSampleCollectionMapper tBizSampleCollectionMapper;

    /**
     * 查询样本采集
     *
     * @param id 样本采集主键
     * @return 样本采集
     */
    @Override
    public TBizSampleCollection selectTBizSampleCollectionById(Long id)
    {
        return tBizSampleCollectionMapper.selectTBizSampleCollectionById(id);
    }

    /**
     * 查询样本采集列表
     *
     * @param tBizSampleCollection 样本采集
     * @return 样本采集
     */
    @Override
    public List<TBizSampleCollection> selectTBizSampleCollectionList(TBizSampleCollection tBizSampleCollection)
    {
        return tBizSampleCollectionMapper.selectTBizSampleCollectionList(tBizSampleCollection);
    }

    /**
     * 新增样本采集
     *
     * @param tBizSampleCollection 样本采集
     * @return 结果
     */
    @Override
    public int insertTBizSampleCollection(TBizSampleCollection tBizSampleCollection)
    {
        return tBizSampleCollectionMapper.insertTBizSampleCollection(tBizSampleCollection);
    }

    /**
     * 修改样本采集
     *
     * @param tBizSampleCollection 样本采集
     * @return 结果
     */
    @Override
    public int updateTBizSampleCollection(TBizSampleCollection tBizSampleCollection)
    {
        return tBizSampleCollectionMapper.updateTBizSampleCollection(tBizSampleCollection);
    }

    /**
     * 批量删除样本采集
     *
     * @param ids 需要删除的样本采集主键
     * @return 结果
     */
    @Override
    public int deleteTBizSampleCollectionByIds(Long[] ids)
    {
        return tBizSampleCollectionMapper.deleteTBizSampleCollectionByIds(ids);
    }

    /**
     * 删除样本采集信息
     *
     * @param id 样本采集主键
     * @return 结果
     */
    @Override
    public int deleteTBizSampleCollectionById(Long id)
    {
        return tBizSampleCollectionMapper.deleteTBizSampleCollectionById(id);
    }
}